<div id="central_body_title">Editing user</div>
<%= error_messages_for :user %>
<% form_for(@user) do |f| %>
  <p>
    <b>E-mail</b><br />
    <%= f.text_field :email%>
  </p>

  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Password</b><br />
    <%= f.password_field :password %>
  </p>
  
  <p>
    <b>Retype Password</b><br />
    <%= f.password_field :password_confirmation %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Back', :action => 'index', :controller => 'users' %> 